package org.openinsula.jazz.resolver.itmill;

import static org.junit.Assert.assertEquals;

import org.junit.Before;
import org.junit.Test;

import com.itmill.toolkit.ui.TextField;


public class TextFieldResolverTestCase {

	private TextField textField = new TextField();
	
	private TextFieldResolver resolver = new TextFieldResolver();
	
	@Before
	public void init() {
		textField.setValue("Realm");
	}
	
	@Test
	public void testGetValue() {
		assertEquals("Realm", resolver.getValue(textField));
	}
	
	@Test
	public void testSetValue() {
		String java = "java";
		
		resolver.setValue(textField, java);
		
		assertEquals(java, textField.getValue());
	}
	
	
}
